package com.cn.zmc.design.chian.controller;


import com.cn.zmc.design.chian.disruptor.factory.TradeDisruptorFactory;
import com.cn.zmc.design.chian.domain.ChainDto;
import com.cn.zmc.design.chian.factory.ChainFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("disruptor")
@Configuration
@Component
public class DisruptorController {

    @Autowired
    private TradeDisruptorFactory tradeDisruptorFactory;

    @RequestMapping("test")
    public String test() {
        tradeDisruptorFactory.publishTradeTwo();
        return "ok";
    }


}
